package Extends.KidsExec;

/**
 * @author Jimmy
 * @date 2022/11/13 - 19:10
 */
public class ManKind {
    private int sex;
    private int salary;

    public ManKind() {

    }

    public ManKind(int sex, int salary) {
        this.sex = sex;
        this.salary = salary;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }


    public void manOrWoman(){
        if(this.sex == 1){
            System.out.println("man");
        } else {
            System.out.println("woman");
        }
    }

    public void employed(){
        if(this.salary == 0){
            System.out.println("no job");
        } else {
            System.out.println("job");
        }
    }

}
